package com.docted.judgefiletype;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * @Author DoCted
 * @Date 2017/8/8
 */
public class Test {
    public static void main(String[] args) {
        try {
            System.out.println(FileTypeJudge.getType("/Users/DoCted/deme.xml"));


            System.out.println(Files.probeContentType(Paths.get("/Users/DoCted/deme.xml")));

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
